<template>
  <div>
    <el-dialog title="编辑首营资料图片" :visible.sync="dialogVisible" width="500px">
      <el-form :disabled="true" class="demo-form-inline" label-width="90px">
        <el-form-item label="商品名称">
          <el-input v-model="data.goodsName" />
        </el-form-item>
        <el-form-item label="供应商名称">
          <el-input />
        </el-form-item>
      </el-form>
    
      <span>上首营资料图片</span>
      <el-upload
        class="upload-demo"
        drag
        action="https://jsonplaceholder.typicode.com/posts/"
        multiple
      >
        <i class="el-icon-upload"></i>
        <div class="el-upload__text">
          单击/双击选择文件
        </div>
      </el-upload>

      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="submit()">提 交</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import apigoodslibrary from "@/api/goodsManage/goodslibrary";
export default {
  name: "dialogAppLibraryUpload",
  data() {
    return {
      dialogVisible: false,
      data: {
        id: "",
        goodsName: ""
      }
    };
  },

  methods: {
    //APP图片上传
    open(row) {
      this.data = row;
      this.dialogVisible = true;
    }
  }
};
</script>

<style scoped>
</style>